package com.base.cn.platform.os.entity.statistics.goods;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import com.base.cn.platform.os.common.mybatis.SqlExclude;
import com.base.cn.platform.os.entity.order.shop.ShopData;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品UV统计实体
 *
 * @author s.li
 * @date 2019/04/24
 */
@Data
public class ZStatisticsGoodsUVCount extends BaseEntity {
    /**统计时间（天）*/
    private Date countTime;
    /**商品ID*/
    private BigDecimal goodsId;
    /**商品类型*/
    private String goodsType;
    /**UV量*/
    private Integer uvCount;
    /**订单量*/
    @SqlExclude
    private Integer orderNum;

    //==============================
    /**商品对象*/
    private ShopData shop;

    public Integer getUvCount() {
        return uvCount ==null?0 : uvCount;
    }

    public Integer getOrderNum() {
        return orderNum==null? 0 : orderNum;
    }
}
